package com.rd.student.jiaji.class4.suyan.zrrd.homework2;

import java.util.Arrays;
import java.util.Random;

public class 模拟彩票系统 {
    public static void main(String[] args) {
        Random ran= new Random();
        int[] arr=new int[35];
        int [] arr1=new int[12];
        int[] card=new int[7];
        int a=ran.nextInt(35)+1;
        int b=ran.nextInt(12)+1;
        for (int i=0;i<arr1.length;i++){
            for (int j=0;j<arr.length;j++){
                int count=0;
                card[count++]=arr1[i]+arr[j]+a+b;
            }
        }
        System.out.println(Arrays.toString(card));
        for (int i=0;i<card.length;i++){
            int temp=card[i];
            card[i]=card[b];
            card[b]=temp;
        }
        System.out.println(Arrays.toString(card));
    }
}
